# coding:utf-8
# Project:pyinterface
# author:wj
# time:2023/1/5 14:58
# Email:1305137785@qq.com
import hashlib
class HandleMD5Tool:
    def Md5Tool(self,teststr):
        # 创建 MD5 对象
        h1 = hashlib.md5();
        h1.update(teststr.encode(encoding="utf-8"));
        MD5str = h1.hexdigest();
        return MD5str;
